package structural.strategy;

import structural.strategy.interfaces.MonkeyFood;

/**
 * @Author douhy
 * @description 动物园类
 * @date 22/03/08
 */
public class Zoo {

    // 聚合 猴子食物对象
    private MonkeyFood monkeyFood;

    public Zoo(MonkeyFood monkeyFood) {
        this.monkeyFood = monkeyFood;
    }

    public void lunch(){
        monkeyFood.eat();
    }

}
